<script>
	import i18n from './common/i18n/index.js'
	import {
		checkLogin
	} from './utils/index.js'
	export default {
		globalData: {
			$checkLogin: checkLogin
		},
		onLaunch: function() {
			console.log('App Launch')
		},
		onShow: function() {
			console.log('App Show')
			let tabBar = [{
					title: i18n.t('app.home')
				},
				{
					title: i18n.t('app.shebei')
				},
				{
					title: i18n.t('app.daili')
				},
				{
					title: i18n.t('app.my')
				}
			]
			tabBar.forEach((item, index) => {
				uni.setTabBarItem({
					index,
					text: item.title
				})
			});
		},

		onHide: function() {
			console.log('App Hide')
		},

	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import '@/static/iconfont/iconfont.css';
	@import '@/uni_modules/uni-scss/index.scss';
</style>